#include <stdio.h>

// 宏函数参数应加括号确保优先级不出问题
#define MAX(a, b) (a) > (b) ? (a) : (b)
#define SQUARE(a) (a) * (a)

// 多行宏函数
#define SWAP(a, b) \
	do { \
		typeof(a) t; \
		t = (a); \
		(a) = (b); \
		(b) = t; \
	} while (0)

// 注意数据类型
#define YEAR_MILSECONDS 366 * 24 * 60 * 60 * 1000UL

int main()
{
	int a, b;

	scanf("%d%d", &a, &b);

	printf("两个数中最大值为%d\n", MAX(a, b));
	printf("两个数平方分别为%d和%d\n", SQUARE(a), SQUARE(b));
	printf("两个数加一的平方分别为%d和%d\n", SQUARE(a + 1), SQUARE(b + 1));

	SWAP(a, b);
	printf("交换后：%d %d\n", a, b);

	printf("闰年有%ld毫秒\n", YEAR_MILSECONDS);

	return 0;
}
